package cn.hou.java.designpattern._16cor;

//汽车组装抽象类
public abstract class CarHandler {
	//引用一个下一步的类   protected:只有子类才可以访问
	protected CarHandler carHandler;
	//设置职责链下一步的类,返回对象,方便一直调用.链式设置API
	public CarHandler setNextCarHandler(CarHandler carHandler) {
		this.carHandler = carHandler;
		return this.carHandler;
	}

	//组装汽车方法
	public abstract void HandlerCar();

}
